import re


def validateEmail(email):
    if re.match("^\w+@[a-z0-9]+\.[a-z]{2,4}$", email):
        return True
    else:
        return False

def validatePassword(password):
    if re.match("^[a-zA-Z0-9_]{6,20}$", password):
        return True
    else:
        return False